package com.hotel.services;

import com.github.pagehelper.PageInfo;
import com.hotel.entitys.Guest;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GuestService {
    public PageInfo<Guest> getAllGuest(String keyWord, Integer curentPage, Integer pageSize);//分页查询

    public Guest getUserByNameAndPwd(Integer guest_id);//查询一条

    public int addGuest(Guest guest);//增加

    int  deleteAll(Object[] obj);//批量删除
    int delete( Integer guest_id);//删除一个

    public  int update(Guest guest);//修改

    public Guest selGuestByTel(String telephone);

    public int updById(Integer gid);
}
